<?php
class App_Module_Admin_ExceptionHandler_Http_Ajax extends Mozg_ExceptionHandler
{
    protected function HandleNotAuthorized(Exception $e)
    {
		Mozg::Lib('messanger')->createMessage(Mozg_Lang::_('SESSION_FINISHED'), MESSAGE_ERROR);
        Mozg::Response('http')->SetStatus(Mozg_Response::StatusError);
    }
    
    protected function HandleNotAcceptable(Exception $e)
    {
		Mozg::Lib('messanger')->createMessage(Mozg_Lang::_('ACCESS_DENIED'), MESSAGE_ERROR);
        Mozg::Response('http')->SetStatus(Mozg_Response::StatusError);
    }

    protected function HandleNotFound(Exception $e)
    {
		Mozg::Lib('messanger')->createMessage(Mozg_Lang::_('PAGE_NOT_FOUND'), MESSAGE_ERROR);
        
		Mozg::Response('http')->setHttpResponseCode(404);
		Mozg::Response('http')->SetStatus(Mozg_Response::StatusError);
    }
}